//
//  HMXMPPManager.h
//  HMWeChat
//
//  Created by apple on 2017/5/10.
//  Copyright © 2017年 itheima. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef enum : NSUInteger {
    HMXMPPMsgTypeTXT, //文本
    HMXMPPMsgTypeIMG,  //图片
    HMXMPPMsgTypeAUD, //音频
    HMXMPPMsgTypeFILE, //其他
    HMXMPPMsgTypeOfflineIMG, //离线图片
    HMXMPPMsgTypeOfflineAVD, //离线视频
} HMXMPPMsgType;  //消息类型

@interface HMXMPPManager : NSObject

//花名册模块
@property (nonatomic, strong) XMPPRoster *xmppRoster;

//数据流对象  封装socket
@property (nonatomic, strong) XMPPStream *xmppStream;

//电子名片模块
@property (nonatomic, strong) XMPPvCardTempModule *xmppvCard;

//头像模块
@property (nonatomic, strong) XMPPvCardAvatarModule *xmppAvatar;

//文件发送模块
@property (nonatomic, strong) XMPPOutgoingFileTransfer *xmppOutgoingTF;

//初始化
+ (instancetype)sharedManager;


/**
 登录

 @param jid jid账号
 @param password 密码
 */
- (void)loginWithJID:(XMPPJID *)jid andPassword:(NSString *)password;


/**
 注册

 @param jid 账号
 @param password 密码
 */
- (void)registerWithJID:(XMPPJID *)jid andPassword:(NSString *)password;

@end
